﻿#ifndef CLOCKWIDGET_H
#define CLOCKWIDGET_H

#include <QWidget>
#include <QTimer>
#include <QTime>
#include<QPainter>
class ClockWidget : public QWidget
{
    Q_OBJECT
public:
    explicit ClockWidget(QWidget *parent = nullptr);

protected:
    void paintEvent(QPaintEvent *event) override;

private:
    QTimer *timer;
    void drawClock(QPainter &painter);
    void drawHand(QPainter &painter, qreal angle, int length);

};

#endif //
